class UserBoxTransferRecordModel {
  List<UserBoxTransferRecordItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  UserBoxTransferRecordModel({
    this.list,
    this.pageNum,
    this.pageSize,
    this.total,
    this.totalPage,
  });

  UserBoxTransferRecordModel.fromJson(Map<String, dynamic> json) {
    list =
        json["list"] == null
            ? null
            : (json["list"] as List)
                .map((e) => UserBoxTransferRecordItem.fromJson(e))
                .toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  static List<UserBoxTransferRecordModel> fromList(
    List<Map<String, dynamic>> list,
  ) {
    return list.map(UserBoxTransferRecordModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if (list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class UserBoxTransferRecordItem {
  String? boxImageUrl;
  String? boxCoverImageUrl;
  int? count;
  String? createTime;
  int? id;
  String? receiveUserAccount;
  String? sendUserAccount;
  String? title;

  UserBoxTransferRecordItem({
    this.boxImageUrl,
    this.boxCoverImageUrl,
    this.count,
    this.createTime,
    this.id,
    this.receiveUserAccount,
    this.sendUserAccount,
    this.title,
  });

  UserBoxTransferRecordItem.fromJson(Map<String, dynamic> json) {
    boxImageUrl = json["boxImageUrl"];
    boxCoverImageUrl = json["boxCoverImageUrl"];
    count = json["count"];
    createTime = json["createTime"];
    id = json["id"];
    receiveUserAccount = json["receiveUserAccount"];
    sendUserAccount = json["sendUserAccount"];
    title = json["title"];
  }

  static List<UserBoxTransferRecordItem> fromList(
    List<Map<String, dynamic>> list,
  ) {
    return list.map(UserBoxTransferRecordItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["boxImageUrl"] = boxImageUrl;
    _data["boxCoverImageUrl"] = boxCoverImageUrl;
    _data["count"] = count;
    _data["createTime"] = createTime;
    _data["id"] = id;
    _data["receiveUserAccount"] = receiveUserAccount;
    _data["sendUserAccount"] = sendUserAccount;
    _data["title"] = title;
    return _data;
  }
}
